<template>
  <div class="login">
    <div class="header">
      <div class="icon"><img src="@/assets/imgs/badge.png" alt="" /></div>
      <div class="title">军事科学院研究生院</div>
    </div>
    <div class="login-form">
      <div class="title">欢迎登录</div>
      <div class="loging">
        <span>已有账号？</span>
        <span>登录</span>
      </div>
      <el-form
        label-width="70px"
        :model="loginForm"
        style="margin-top: 70px"
        class="form"
      >
        <el-form-item label="姓名">
          <el-input v-model="loginForm.name"></el-input>
        </el-form-item>
        <el-form-item label="手机号">
          <el-input v-model="loginForm.phone"></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input v-model="loginForm.password" show-password></el-input>
        </el-form-item>
        <el-form-item label="确认密码">
          <el-input v-model="loginForm.unpassword" show-password></el-input>
        </el-form-item>
        <el-form-item label="验证码">
          <el-input v-model="loginForm.type" style="width: 240px"></el-input>
          <el-button type="primary">获取验证码</el-button>
        </el-form-item>
      </el-form>
      <el-button type="primary" round class="but">注册</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'login',
  data() {
    return {
      loginForm: {
        name: '',
        password: '',
        type: '',
        unpassword: '',
        phone: '',
      },
    }
  },
  methods: {},
}
</script>

<style lang="less" scoped>
.login {
  min-height: 100vh;
  background: url(~@/assets/imgs/login.jpg) no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: space-between;
  .header {
    display: flex;
    img {
      width: 77px;
      height: 78px;
      margin: 50px 0 0 50px;
    }
    .title {
      width: 300px;
      height: 32px;
      font-family: Source Han Sans CN;
      font-weight: 700;
      color: #ffffff;
      font-size: 32px;
      line-height: 32px;
      margin: 72px 0 0 20px;
    }
  }
  .login-form {
    width: 580px;
    height: 780px;
    background: rgba(#fff, 0.9);
    margin: 100px 180px 0 0;
    padding: 70px 70px 0;
    border-radius: 5px;
    .title {
      font-weight: 700;
      color: #000000;
      font-size: 30px;
    }
    .loging > span:nth-child(1) {
      color: #666666;
      font-size: 14px;
    }
    .loging > span:nth-child(2) {
      color: #dd1d20;
      font-size: 14px;
    }
    .form {
      .el-input {
        border-radius: 5px;
        box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.16);
      }
      /deep/ .el-input__inner:focus {
        border-color: #dd1d20;
      }
      .el-button--primary {
        background-color: #dd1d20;
        border: #dd1d20;
        margin-left: 20px;
      }
    }
    .but {
      width: 400px;
      height: 55px;
      font-size: 20px;
      font-weight: 700;
      background-color: #dd1d20;
      border-radius: 27px;
      margin-left: 22px;
      margin-top: 80px;
    }
    .el-button--primary {
      background-color: #dd1d20;
      border: #dd1d20;
    }
  }
}
</style>
